<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<script type="text/javascript">
	function query() {
		$("#form1").submit();
	}
	function add() {
		var url = "${path}/ix/config/paper/add_form.htm";
		$("#form1").attr("action", url);
		$("#form1").submit();
	}
	function edit(paper_id) {
		$("input[name=paper_id]").val(paper_id);
		var url = "${path}/ix/config/paper/edit_form.htm"
		$("#form1").attr("action", url);
		$("#form1").submit();
	}
	function myDel(paper_id) {
		if (confirm("确认要删除吗？")) {
			$("input[name=paper_id]").val(paper_id);
			var url = "${path}/ix/config/paper/del.htm"
			$("#form1").attr("action", url);
			$("#form1").submit();
		}
	}
</script>
</head>
<body>
	<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
	<div>
		<form action="${path}/ix/config/paper/list.htm" id="form1"
			method="post">
			<input name="paper_id" type="hidden" />
			<h2>
				<div>纸张管理</div>
			</h2>

			<table width="100%" class="listlindex">
				<tr>
					<th>纸张名字</th>
					<th>操作</th>
				</tr>
				<c:if test="${fn:length(paperlist)==0}">
					<tr>
						<td colspan="2"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>
				<c:forEach items="${paperlist}" var="v">
					<tr>
						<td>${v.name}</td>
						<td>
							<!--	<a href="javascript:goDetail('${v._id}');">【查看详情】</a>	--> <a
							href="javascript:edit('${v._id}');">【修改】</a> <a
							href="javascript:myDel('${v._id}');">【删除】</a>
						</td>
					</tr>
				</c:forEach>
			</table>
			<div id="response"></div>
			<div class="options">
				<p>
					<a href="javascript:add();">【添加】</a>
				</p>

				<div class="clear"></div>
			</div>
		</form>

	</div>
</body>
</html>
